package com.yuhanginfo.modules.sys.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.yuhanginfo.common.service.CrudService;
import com.yuhanginfo.modules.sys.entity.EnquiryGoodsReply;
import com.yuhanginfo.modules.sys.dao.EnquiryGoodsReplyDao;

/**
 * 询价Service
 * @author yangs
 * @version 2017-11-23
 */
@Service
@Transactional(readOnly = true)
public class EnquiryGoodsReplyService extends CrudService<EnquiryGoodsReplyDao, EnquiryGoodsReply> {
    @Autowired
    private EnquiryGoodsReplyDao enquiryGoodsReplyDao;
    

	
	@Transactional(readOnly = false)
	public void save(EnquiryGoodsReply enquiryGoodsReply) {
		super.save(enquiryGoodsReply);
	}
	
	@Transactional(readOnly = false)
	public void delete(EnquiryGoodsReply enquiryGoodsReply) {
		super.delete(enquiryGoodsReply);
	}

	public List<EnquiryGoodsReply> selectByCode(String code) {
		
		return enquiryGoodsReplyDao.selectByCode(code);
	}

	public List<EnquiryGoodsReply> selectByenquiryGoodsId(String id) {
		
		return enquiryGoodsReplyDao.selectByenquiryGoodsId(id);
	}
	
}